home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / include / linux / fs_struct.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  617 b   |  28 lines

  1. #ifndef _LINUX_FS_STRUCT_H
  2. #define _LINUX_FS_STRUCT_H
  3.  
  4. #include <linux/path.h>
  5.  
  6. struct fs_struct {
  7.     atomic_t count;
  8.     rwlock_t lock;
  9.     int umask;
  10.     struct path root, pwd;
  11. };
  12.  
  13. #define INIT_FS {                \
  14.     .count        = ATOMIC_INIT(1),    \
  15.     .lock        = RW_LOCK_UNLOCKED,    \
  16.     .umask        = 0022, \
  17. }
  18.  
  19. extern struct kmem_cache *fs_cachep;
  20.  
  21. extern void exit_fs(struct task_struct *);
  22. extern void set_fs_root(struct fs_struct *, struct path *);
  23. extern void set_fs_pwd(struct fs_struct *, struct path *);
  24. extern struct fs_struct *copy_fs_struct(struct fs_struct *);
  25. extern void put_fs_struct(struct fs_struct *);
  26.  
  27. #endif /* _LINUX_FS_STRUCT_H */
  28.